xen/unlz4: always set an error return code on failures
authorJan Beulich <jbeulich@suse.com>
Tue, 28 Jan 2014 12:31:28 +0000 (13:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jan 2014 12:31:28 +0000 (13:31 +0100)
commit55d207597e05b79fb0d90868abfe0f77b3ba66f2
treed285a3abdb0a27f7a3431109283acb249855ee1e
parent3c80caee183124b2a0d1f7e0dae062fd794d6321
xen/unlz4: always set an error return code on failures

"ret", being set to -1 early on, gets cleared by the first invocation
of lz4_decompress()/lz4_decompress_unknownoutputsize(), and hence
subsequent failures wouldn't be noticed by the caller without setting
it back to -1 right after those calls.

Linux commit: 2a1d689c9ba42a6066540fb221b6ecbd6298b728

Reported-by: Matthew Daley <mattjd@gmail.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/unlz4.c